﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Drawing;
using System.Data;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using Elegant2.Business;

namespace Elegant
{
    public partial class Imagem : UserControl
    {
        public Imagem()
        {
            InitializeComponent();
        }

        private void btnCarregarFoto_Click(object sender, EventArgs e)
        {
            OpenFileDialog opPicture = new OpenFileDialog();
            opPicture.InitialDirectory = Application.StartupPath;
            opPicture.Multiselect = true;
            opPicture.Filter = "*.jpg|*.jpg";
            opPicture.ShowDialog();
            string[] pictures = opPicture.SafeFileNames;

            PictureOpenReadFile por = new PictureOpenReadFile();
            por.LoadPictures(pictures, this);
        }
    }
}
